home *** CD-ROM | disk | FTP | other *** search
/ Plug-In Power Pack for Netscape Communicator / Plug-In Power Pack for Netscape Communicator.iso / plugins / dataviews / include / dvinterface.h < prev    next >
C/C++ Source or Header  |  1997-05-12  |  1KB  |  40 lines

  1.  
  2. #include "StdAfx.h"
  3.  
  4. #ifndef __DVINTERFACE__
  5. #define __DVINTERFACE__
  6.  
  7. // These IID's retrieve the DLL's that should be used as the default
  8. //  interface.  They use the associated registry keys to find the DLL.
  9. //
  10. #define IID_Datasource    1000
  11. #define IID_Rules        1001
  12. #define IID_Run            1002
  13.  
  14. // These IID's retrieve the original DLL's as installed by DataViews.  Use
  15. //  these keys if you want to have access to the original interface after
  16. //  changing the registry keys to custom values.
  17. //
  18. #define IID_DV_Datasource    11000
  19. #define IID_DV_Rules        11001
  20. #define IID_DV_Run            11002
  21.  
  22. #define DLLIMPORT        __declspec(dllimport)
  23. #define DLLEXPORT        __declspec(dllexport)
  24.  
  25. typedef BOOL (*GETIFFUNC)(int, void**);
  26.  
  27. class DVIUnknown
  28. {
  29. public:
  30.     virtual void Release() = 0;
  31.     virtual void GetIdInfo(CString& mfgName, CString& objName, CString& versionStr) = 0;
  32. };
  33.  
  34. #ifdef DVDRAW_MAIN
  35. DLLEXPORT void DVIGetInterface(int idd, void** pInterf);
  36. #else
  37. DLLIMPORT void DVIGetInterface(int idd, void** pInterf);
  38. #endif // DVDRAW_MAIN
  39.  
  40. #endif